package com.sam.designpattern.mediator;

/**
 * @Author: Sam
 * @Date: 2022-08-02 11:20
 * @Description: 同事类：声卡类
 */
public class SoundCard extends Colleague {

    public SoundCard(Mediator mediator) {
        super(mediator);
    }

    /**
     * 按照声频数据发出声音
     *
     * @param data 发出声音的数据
     */
    public void soundData(String data) {
        System.out.println("画外音：" + data);
    }
}
